//
//  PKRadiomDetailModel.m
//  PianKe
//
//  Created by mingtao on 15/10/7.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKRadiomDetailModel.h"
#import "PKRadiomodelMoreting.h"

@implementation PKRadiomDetailModel


-(void)setValue:(id)value forKey:(NSString *)key
{
    

    if ([key isEqualToString:@"moreting"]) {
        _moreting = [NSMutableArray arrayWithCapacity:0];
        
        for (NSMutableDictionary *Dickey in value) {
            
            PKRadiomodelMoreting *redimo=[[PKRadiomodelMoreting alloc]init];
            
            [redimo setValuesForKeysWithDictionary:Dickey];
            
            [self.moreting addObject:redimo];
        }
    }else if([key isEqualToString:@"playInfo"])
    {
        NSLog(@"sadsfsdf");
        _playInfo = [[PKRadioplayInfo alloc]init];
        [self.playInfo setValuesForKeysWithDictionary:value];
    }else if ([key isEqualToString:@"authorinfo"])
    {
        _authorinfo = [[PKAuthorinfo alloc]init];
        
        [self.authorinfo setValuesForKeysWithDictionary:value];
        
    }else if ([key isEqualToString:@"userinfo"])
    {
        _userinfo = [[PKUserinfo alloc]init];
        
        [self.userinfo setValuesForKeysWithDictionary:value];
    }else
    {
        [super setValue:value forKey:key];
    }

}


@end
